<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <ul id="ul1">
    <li class="box"></li>
    <li class="box"></li>
    <li></li>
    <li></li>
    <li></li>
    <li class="box"></li>

  </ul>



  <script>
    let ul1 = document.getElementById("ul1")
    box = ul1.getElementsByClassName("box")
    console.log(box);
    

  </script>

</body>

</html>